#ifndef DEPPROPERTY_H
#define DEPPROPERTY_H
#include <QDialog>
#include "dep.h"
#include "ui_depProperty.h"
#include <QtDebug>
#include "depproperty.h"
#include "node.h"
#include "triggerstateproperty.h"


class depproperty : public QDialog, public Ui::Form3
{
    Q_OBJECT

public:
    depproperty(dep *dep1, int numDep, node *myblock1, QWidget *parent = 0);
    depproperty(node *myblock1, bool fa);//costruttore per la finestra di settaggio degli stati attivo e fallito principali
    void setDep1(dep* dep1);
    dep* getDep1();
    void setGroupBoxCdf(cdf *distribution, int num_dep);


private:
    dep * mydep1;
    int numDep;
    bool cdf_failure_active;
    node *myblock1;
    QSignalMapper *signalMapper;

private slots:
    void on_lineEdit_textChanged();
    void id_accept();
    void cdf_failure_active_accept();
    void comboBox_currentIndexChanged(int currentIndex);
    void comboBox2_currentIndexChanged(int currentIndex);
    void comboBox3_currentIndexChanged(int currentIndex);
    void comboBox4_currentIndexChanged(int currentIndex);
    void comboBox5_currentIndexChanged(int currentIndex);

    void helpButtonClicked(int);
};

#endif // DEPPROPERTY_H
